package com.example.barcodeapp.persenter;

import com.example.barcodeapp.base.BasePersenter;
import com.example.barcodeapp.common.CommonSubscriber;
import com.example.barcodeapp.interfaces.own.IOwn;
import com.example.barcodeapp.model.HttpManager;
import com.example.barcodeapp.ui.wode.bean.JiFengBiJiLuBean;
import com.example.barcodeapp.ui.wode.bean.WoDeZhuYeBean;
import com.example.barcodeapp.utils.RxUtils;

public class OnePresenterJiFengBiJiLu extends BasePersenter<IOwn.Viewjifengbi> implements IOwn.Persenterjifengbi {


    @Override
    public void getjifengbi(int uid) {
        addSubscribe(HttpManager.getInstance().getOwnTpApi().getwodejifengbi(uid)
                .compose(RxUtils.rxScheduler())
                .subscribeWith(new CommonSubscriber<JiFengBiJiLuBean>(mView) {
                    @Override
                    public void onNext(JiFengBiJiLuBean hanFuDaBean) {
                        mView.getjifengbi(hanFuDaBean);
                    }
                }));
    }
}
